package control;

import java.util.ArrayList;

import store.TaxCalculator;

import model.*;

public class DDRegister extends Register{
	protected static String[] actions = {"Coffee", "Doughnut", "Sandwich", "Munchkins", "Bagel", "Muffin", "Hash Browns", "Quit"};
	
	public DDRegister(ArrayList<Treat> treats, TaxCalculator calc) {
		super(treats, calc);
	}

	/**
	 * getTreat - gets the user's choice of treat
	 * Preconditions: None
	 * Postconditions: A concrete instance of Treat is returned
	 * @return AN initialized treat
	 */
	public Treat getTreatOrder(int treatChoice){
		switch (treatChoice){
			case 0:
				return new Coffee();
			case 1: 
				return new Doughnut();
			case 2:
				return new Sandwich();
			case 3:
				return new Munchkins();
			case 4: 
				return new Bagel();
			case 5:
				return new Muffin();
			case 6: 
				return new HashBrowns();
		}
		return new ClassicSundae();
	}

	@Override
	String[] getActions() {
		// TODO Auto-generated method stub
		return actions;
	}
}
